﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace while1
{
    class Program
    {
        static void Main(string[] args)
        {
            double i = 1, sum = 1;
            while (i < 100)
            {
                sum += i / (i + 1);
                i++;
            }
            Console.WriteLine("数列的和为{0}", sum);
            Console.ReadKey();
        }
    }
}
